home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Amiga Format CD 32
/
Amiga Format AFCD32 (Nov 1998, Issue 117).iso
/
-seriously_amiga-
/
programming
/
other
/
classfree
/
cfscrollerclass
/
cfscroller.doc
next >
Wrap
Text File
|
1998-08-10
|
2KB
|
85 lines
Class: CFscrollergclass
Author: Anders E. Andersen <andersa@fys.ku.dk>
Superclass: gadgetclass
Desciption: GadTools scroller replacement
Include File: "CFscroller.h"
New Methods:
------------
None
Changed Methods:
----------------
OM_NEW - Creates the propgadget, frame, arrow images and buttons.
OM_SET - Supports CFSC_Top, CFSC_Visible and CFSC_Total.
OM_GET - Only works on the regular gadgetclass attributes.
OM_UPDATE - This method recieves messages from the sub gadgets
and changes the attributes accordingly. It sends OM_NOTIFY
messages to itself every time the CFSC_Top value changes.
These messages have the CFSC_Top and GA_ID attributes in the
attribute list.
GM_HITTEST
GM_GOACTIVE
GM_HANDLEINPUT
GM_GOINACTIVE - These just passes the message down in the
hierachy. The functianality depends on what sub-gadget that is
activated.
GM_RENDER - Redraws all gadgets.
See also the notes section of the readme file.
Attributes:
-----------
GA_Left, GA_Top.
Positions the scroller.
GA_Width, GA_Height.
Depending on CFSC_Freedom, this controls either the width
or the height of the gadget (see also CFSC_Size and the
readme file).
GA_DrawInfo
IMPORTANT! The scroller object can't be created without this!
Get it with GetScreenDrawInfo().
CFSC_Freedom, CFSC_Top, CFSC_Visible, CFSC_Total.
Works like the similar attributes of the GadTools
SCROLLER_KIND gadget.
CFSC_Size.
Depending on CFSC_Freedom, this controls either the width
or the height of the gadget (see also the readme file).
The sizes in pixels are:
CFSC_Freedom -|- FREEVERT -|- FREEHORIZ
CFSC_Size | Width | Height | Width | Height
--------------+--------+-----------+----------+---------
SIZE_LOWRES | 13 | GA_Height | GA_Width | 11
SIZE_MEDRES | 18 | GA_Height | GA_Width | 10
SIZE_HIRES | 23 | GA_Height | GA_Width | 22